<template>
    <div>
        <Add @show="show"></Add>
        <Update @show="show"></Update>
        <List @show="show" :students="students"></List>
    </div>
</template>
<script setup>
import Add from './Add.vue';
import Update from './Update.vue';
import List from './List.vue';
import {getStudentList} from '@/services/student.js';
import {ref,onMounted} from 'vue';
const students = ref([]);
const show = async (params = {}) => {
    const resp = await getStudentList();
    students.value = resp.data;
    

}
onMounted(() => {
    show();
});
</script>